class UsersController < ApplicationController
  def index
    @view_user = User.find(params[:id])
    @stoves = Array.new(5)
    @view_user.dishes.each do |dish|  # 按stove_num为下标输出数组
      @stoves[dish.stove_num] = dish
    end
  end

  def skills
    @dish_skills = @user.dish_skills
  end
  
end
